import request from '@/utils/request'

// 视频树查询
export function getVideoTree(data) {
	return request({
		url: '/camera/all/tree',
		method: 'post',
		data: data,
	})
}

// 推荐视频树查询
export function getVideoRcmdTree(data) {
	return request({
		url: '/camera/all/rcmds-app',
		method: 'post',
		data: data,
	})
}

// 视频树子集查询
export function getVideoSubTree(data) {
	return request({
		url: '/camera/all/subtree',
		method: 'post',
		data: data,
	})
}

// 类型查询
export function getType(data) {
	return request({
		url: '/camera/all/typeDict',
		method: 'post',
		data: data,
	})
}

// 单个视频查询
export function getVideoInfo(data) {
	return request({
		url: '/camera/all/play-app',
		method: 'post',
		data: data,
	})
}

// 推荐视频
export function setRecommend(data) {
	return request({
		url: '/camera/all/doRcmd-app',
		method: 'post',
		data: data,
	})
}

// 取消推荐
export function unRecommend(data) {
	return request({
		url: '/camera/all/undoRecmd',
		method: 'post',
		data: data,
	})
}